package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ShopStoreMapper;
import com.ruoyi.system.domain.ShopStore;
import com.ruoyi.system.service.IShopStoreService;

/**
 * 店铺信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-20
 */
@Service
public class ShopStoreServiceImpl implements IShopStoreService 
{
    @Autowired
    private ShopStoreMapper shopStoreMapper;

    /**
     * 查询店铺信息
     * 
     * @param storeId 店铺信息主键
     * @return 店铺信息
     */
    @Override
    public ShopStore selectShopStoreByStoreId(Long storeId)
    {
        return shopStoreMapper.selectShopStoreByStoreId(storeId);
    }

    /**
     * 查询店铺信息列表
     * 
     * @param shopStore 店铺信息
     * @return 店铺信息
     */
    @Override
    public List<ShopStore> selectShopStoreList(ShopStore shopStore)
    {
        return shopStoreMapper.selectShopStoreList(shopStore);
    }

    /**
     * 新增店铺信息
     * 
     * @param shopStore 店铺信息
     * @return 结果
     */
    @Override
    public int insertShopStore(ShopStore shopStore)
    {
        return shopStoreMapper.insertShopStore(shopStore);
    }

    /**
     * 修改店铺信息
     * 
     * @param shopStore 店铺信息
     * @return 结果
     */
    @Override
    public int updateShopStore(ShopStore shopStore)
    {
        return shopStoreMapper.updateShopStore(shopStore);
    }

    /**
     * 批量删除店铺信息
     * 
     * @param storeIds 需要删除的店铺信息主键
     * @return 结果
     */
    @Override
    public int deleteShopStoreByStoreIds(Long[] storeIds)
    {
        return shopStoreMapper.deleteShopStoreByStoreIds(storeIds);
    }

    /**
     * 删除店铺信息信息
     * 
     * @param storeId 店铺信息主键
     * @return 结果
     */
    @Override
    public int deleteShopStoreByStoreId(Long storeId)
    {
        return shopStoreMapper.deleteShopStoreByStoreId(storeId);
    }
}
